package com.bff.slimserver.musicjukebox.ui.components.podcast;

import com.bff.slimserver.musicjukebox.ui.components.MusicCellRenderer;
import java.awt.Component;
import javax.swing.JTable;

public class PodcastCellRenderer extends MusicCellRenderer {
    
    public PodcastCellRenderer() {
        super();
    }
    
    public Component getTableCellRendererComponent(
            JTable table,
            Object value,
            boolean isSelected,
            boolean hasFocus,
            int row,
            int column) {

        try {
            setText(value.toString());
        } catch(Exception e) {
            setText(null);
        }
        setColors(table, row, isSelected);
        return this;
    }
    
    
}
